package com.atguigu.gulimall.ware.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderItemVo {
    private Long skuId;
    private boolean check = true;
    private String skuImg;
    private String title;
    private BigDecimal price;
    private Integer amount;
    private BigDecimal totalPrice;
    private List<String> attrs;

    private BigDecimal weight = new BigDecimal("0.085");

    public BigDecimal getTotalPrice() {
        return this.price.multiply(new BigDecimal(""+this.amount));
    }
}
